<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //lcalstorage保存到本地的存储器当中的，而不是对象当中，在网页上查看
        let web={
            set token(content){
                localStorage.setItem("token",content);
            },
            get token(){
                return localStorage.getItem("token");
            }
        };
        web.token="2585";
        console.log(web.token);
    </script>
</body>
</html>